home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / INTERNET / SITES / GRAHAM / XA_6S.ZIP / SOURCE / EVNT_BTN.C < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-29  |  568 b   |  22 lines

  1. /*
  2.  * XaAES - XaAES Ain't the AES
  3.  *
  4.  * A multitasking AES replacement for MiNT
  5.  *
  6.  */
  7.  
  8. #include "EVENT_Q.H"
  9. #include "XA_DEFS.H"
  10. #include "XA_GLOBL.H"
  11.  
  12. /*
  13.     evnt_button() routine
  14. */
  15. unsigned long XA_evnt_button(short clnt_pid,AESPB *pb)
  16. {
  17.     clients[clnt_pid].waiting_for=XAWAIT_BUTTON;    /* Flag the app as waiting for messages */
  18.     clients[clnt_pid].waiting_pb=pb;                /* Store a pointer to the AESPB to fill when the event */
  19.                                                     /*  finally arrives. */
  20.     return XAC_BLOCK;    /* Returning FALSE blocks the client app to wait for the event */
  21. }
  22.